#!/usr/bin/env bash

source scripts/local/services.sh

# shellcheck disable=SC2154
for service in "${services[@]}"; do
    process_name="${service}_rpc"
    process_path="app/${service}/rpc"
    build_service "$process_name" "$process_path"
done

# shellcheck disable=SC2154
for mq in "${mqs[@]}"; do
    process_name="${mq}_mq"
    process_path="app/${mq}/mq"
    build_service "$process_name" "$process_path"
done

# shellcheck disable=SC2154
for api in "${apis[@]}"; do
    process_name="${api}_api"
    process_path="app/${api}/api"
    build_service "$process_name" "$process_path"
done